/*/////////////////////////////////////////////////////////////////////////////////
/// An
///    ___   ____ ___ _____ ___  ____
///   / _ \ / ___|_ _|_   _/ _ \|  _ \
///  | | | | |  _ | |  | || | | | |_) |
///  | |_| | |_| || |  | || |_| |  _ <
///   \___/ \____|___| |_| \___/|_| \_\
///                              File
///
/// Copyright (c) 2008-2009 Ismail TARIM <ismail@royalspor.com> and the Ogitor Team
//
//This program is free software; you can redistribute it and/or modify it under
//the terms of the GNU Lesser General Public License as published by the Free Software
//Foundation; either version 2 of the License, or (at your option) any later
//version.
//
//This program is distributed in the hope that it will be useful, but WITHOUT
//ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
//FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
//
//You should have received a copy of the GNU Lesser General Public License along with
//this program; if not, write to the Free Software Foundation, Inc., 59 Temple
//Place - Suite 330, Boston, MA 02111-1307, USA, or go to
//http://www.gnu.org/copyleft/lesser.txt.
////////////////////////////////////////////////////////////////////////////////*/

#pragma once

namespace Ogitors
{
	//! Ogitor scene serializer class
	/*!  
	A class that is responsible for serializing entire Ogitor-based scene
	*/
	class OgitorExport COgitorsSceneSerializer: public CBaseSerializer
	{
	public:
		/**
		* Constructor (empty)
		*/
		COgitorsSceneSerializer() : CBaseSerializer("Ogitors Scene Serializer", CAN_EXPORT | CAN_IMPORT) {};
		/**
		* Destructor (empty)
		*/
		virtual ~COgitorsSceneSerializer() {};
		/**
		* Tests if serializer needs to terminate the scene before import
		* @return
		*/
		virtual bool RequiresTerminateScene() {return true;};
		/**
		* Exports (serializes) scene data
		* @param SaveAs flag to open "Save As" dialog to allow user to save scene into different location
        * @return result of the scene export  
        * @see SCENEFILERESULT
		*/
		virtual int  Export(bool SaveAs = false);
		/**
		* Imports (de-serializes) scene data
		* @param importfile a scene file to import
        * @return result of the scene import  
        * @see SCENEFILERESULT
		*/
		virtual int  Import(Ogre::String importfile = "");
	};
};

